#ifndef CREATECLASS_H
#define CREATECLASS_H

#include <QDialog>
#include <QHash>

namespace Ui {
class CreateClass;
}

class CreateClass : public QDialog
{
    Q_OBJECT
    
public:
    explicit CreateClass(const QString & path, QWidget *parent = 0);
    virtual ~CreateClass();

    QString openAfter();
private slots:
    void onClassList(const QStringList & list);
    void onParentHighlighted(const QString & cls);
    void onParentFinished();
    void onClassChanged(const QString &);
    void onFileNameChanged(const QString &);
    void onAccept();
private:
    bool checkClass();
    void checkOk();
private:
    Ui::CreateClass *ui;
    QString _path;
    QString _relPath;
    QHash<QString, QString> _classes;
};

#endif // CREATECLASS_H
